package com.niubility.server.Impl;

import com.niubility.dao.UsersCollectionDao;
import com.niubility.entity.UsersCollection;
import com.niubility.server.IUsersCollectionServer;
import com.niubility.vo.CollectionLoad;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName: Users_usercollectionServer
 * @Description: 调用dao方法
 * @author: 张家乐
 * @DATE: 2018/1/31 0031
 */
@Service("collectionServer")
public class UsersCollectionServer implements IUsersCollectionServer {
    @Resource
    UsersCollectionDao usersCollectionDao;

    public int save(UsersCollection usersCollection) {
        return usersCollectionDao.save(usersCollection);
    }

    public int delete(UsersCollection usersCollection) {
        return usersCollectionDao.delete(usersCollection);
    }

    public int deleteAll(Integer i) {
        return usersCollectionDao.deleteAll(i);
    }

    public List<CollectionLoad> loadById(Integer id) {
        return usersCollectionDao.loadById(id);
    }

//    public List<UsersCollection> loadById(Integer id, Integer page, Integer displayCount) {
//        return usersCollectionDao.loadById(id,page,displayCount);
//    }

    public int loadCount(Integer id) {
        return usersCollectionDao.loadCount(id);
    }

    public List<Integer> loadIdsById(Integer id) {
        return usersCollectionDao.loadIdsById(id);
    }

    public int LoadisColl(UsersCollection usersCollection) {
        return usersCollectionDao.loadisColl(usersCollection);
    }
}
